package com.ruoyi.domain.basic;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 物料信息对象 mes_material
 * 
 * @author ruoyi
 */
@Data
public class MesMaterial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 物料ID
     */
    private Long materialId;

    /**
     * 物料编码
     */
    @Excel(name = "物料编码")
    private String materialCode;

    /**
     * 物料名称
     */
    @Excel(name = "物料名称")
    private String materialName;

    /**
     * 物料类型（原材料、半成品、成品）
     */
    @Excel(name = "物料类型", readConverterExp = "原材料、半成品、成品")
    private String materialType;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String specification;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal price;

    /**
     * 安全库存
     */
    @Excel(name = "安全库存")
    private Integer safetyStock;

    /**
     * 物料描述
     */
    @Excel(name = "物料描述")
    private String description;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;
}